792ae8e09ac0bf54f82c91648deaa2a4a328adb8,platform/conf/languages/conf/source_gen/jetbrains/mps/platform/conf/constraints/Extension_extensionPoint_ReferentConstraint.java,Extension_extensionPoint_ReferentConstraint,createSearchScopeOrListOfNodes,#IOperationContext#ReferentConstraintContext#,32
Before Change
}
public Object createSearchScopeOrListOfNodes(final IOperationContext operationContext, final ReferentConstraintContext _context) {
return Sequence.fromIterable(((Iterable<IModule>) operationContext.getScope().getVisibleModules())).<SModelDescriptor>translate(new ITranslator2<IModule, SModelDescriptor>() {
public Iterable<SModelDescriptor> translate(IModule m) {
return m.getOwnModelDescriptors();
}
}).where(new IWhereFilter<SModelDescriptor>() {
public boolean accept(SModelDescriptor smd) {
return !("java_stub".equals(smd.getStereotype()));
}
}).<SNode>translate(new ITranslator2<SModelDescriptor, SNode>() {
public Iterable<SNode> translate(SModelDescriptor smd) {
return SModelOperations.getNodes(((SModel) smd.getSModel()), "jetbrains.mps.platform.conf.structure.ExtensionPoint");
}
After Change
}
public Object createSearchScopeOrListOfNodes(final IOperationContext operationContext, final ReferentConstraintContext _context) {
return Sequence.fromIterable(ConfUtil.visibleConfModels(operationContext.getScope())).<SNode>translate(new ITranslator2<SModel, SNode>() {
public Iterable<SNode> translate(SModel m) {
return SModelOperations.getNodes(m, "jetbrains.mps.platform.conf.structure.ExtensionPoint");
}